﻿// -----------------------------------------------------------------------
// <copyright file="ISqlCommandSource.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Dhgms.TplHelper.Model.SqlCommandSource
{
    using System.Data.Common;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public interface ISqlCommandSource<out TDatabaseParameter>
        where TDatabaseParameter : DbParameter
    {
        /// <summary>
        /// Gets the command
        /// </summary>
        /// <returns></returns>
        string GetCommand();

        /// <summary>
        /// Gets a collection of parameters
        /// </summary>
        /// <returns>Collection of parameters</returns>
        TDatabaseParameter[] GetParameters();
    }
}
